STEP 3: Now that we've called ask_user_question, let's start building the function out!

  • This function asks the user a question that's passed in as a parameter.
  • In GRAPHICS, go to and drag Ask indented inside ask_user_question.
  • Change what's inside the ( ) from "Yes or no?" to question.
  • This will make the sprite ask whatever question we pass into the function. Click Run to see the result!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)